package com.itheima.service;

import com.itheima.pojo.Emp;
import com.itheima.pojo.PageBean;

import java.time.LocalDate;
import java.util.List;

public interface EmpService {
    PageBean<Emp> pageQuery(String name, Integer gender, LocalDate begin, LocalDate end, Integer page, Integer pageSize);

    void add(Emp emp) throws Exception;

    void deleteById(List<Integer> ids);

    //修改员工-查询回显
    Emp getById(Integer id);

    //修改员工
    void putEmp(Emp emp);

    //查询全部员工
    List<Emp> getAllEmp();
}